package com.designPattern.DecoratorMode;

/**
 * Created by Administrator on 2018/1/3.
 */

public class TestDecorator {
    public static void main(String[] args) {
        Human gao = new Gowcage();
        ClothingDecorator cloth = new T_Shirt(new Jeans(new SportShoe(gao)));
        System.out.println(cloth.wearCloth() + "\n魅力值：" + cloth.glamour());
        ClothingDecorator cloth2 = new T_Shirt(new Jacket(new WoolenOvercoat(new Slacks(new LeatherShoe(gao)))));
        System.out.println(cloth2.wearCloth() + "\n魅力值：" + cloth2.glamour());
    }
}
